package com.wing.device.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wing.device.dao.MaintenanceTypeDao;
import com.wing.device.model.entity.Maintenance;
import com.wing.device.model.entity.MaintenanceType;
import com.wing.web.utils.JwtUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.swing.*;
import java.util.List;
import java.util.Map;

/**
 * @version 1.1.0
 * @Author hz
 * @Date 2024-08-19 17:22
 **/
@Service
@Slf4j
public class DeviceMaintenanceTypeServiceImpl extends ServiceImpl<MaintenanceTypeDao, MaintenanceType> implements DeviceMaintenanceTypeService {
    /**
     * 分页查询保养类型
     * @param pg
     * @param map
     * @return
     */
    @Override
    public IPage<MaintenanceType> pageList4app(Page<MaintenanceType> pg, Map map) {
        List<MaintenanceType> list = baseMapper.list4app(pg, map);
        pg.setRecords(list);
        return pg;
    }
}
